package top.go2do.common.module.pageQuery;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @Description
 * @Author xingyj
 * @CreateTime 2025/3/17 14:19
 */
@Setter
@Getter
public class PageResult<T> {
    private Integer page;
    private Integer size;
    private Long total;
    private Integer pages;
    private List<T> list;
    public PageResult (){}
    public PageResult (Integer page, Integer size, Long total, Integer pages) {
        this.page = page;
        this.size = size;
        this.total = total;
        this.pages = pages;
    }
}
